package com.example.cms2.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.javassist.Loader;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @return
 */
@Data
@NoArgsConstructor

public class Employee {
    private Integer id;
    private String lastName;
    private String email;
    private Integer gender;//0 女 1 男z
    private String department;
    private String birth;

    public Employee(Integer id, String lastName, String email, Integer gender, String department, Date birth) {
        this.id = id;
        this.lastName = lastName;
        this.email = email;
        this.gender=gender;
        this.department = department;
        this.birth = new SimpleDateFormat("yyyy-mm-dd").format(birth);
    }
}
